<template>
    <el-dialog title="会员信息" width="760px" :visible.sync="dialog">
        <el-form ref="vip_message" :model="vip_message" label-width="120px">
            <el-form-item label="编号">{{vip_message.v_id}}</el-form-item>
            <el-form-item label="微信名称">{{vip_message.nickname}}</el-form-item>
            <el-form-item label="性别">{{vip_message.sex_str}}</el-form-item>
            <el-form-item label="头像"><img :src="vip_message.headimgurl" alt=""/></el-form-item>
            <el-form-item label="openid">{{vip_message.openid}}</el-form-item>
            <el-form-item label="手机号">{{vip_message.phone}}</el-form-item>
<!--            <el-form-item label="会员类型">{{vip_message.title}}</el-form-item>-->
            <el-form-item label="会员等级">{{vip_message.subtitle}}</el-form-item>
            <el-form-item label="顾问">{{vip_message.adviser}}</el-form-item>
<!--            <el-form-item label="会员类型">月卡</el-form-item>-->
            <el-form-item label="注册时间">{{vip_message.start_time}}</el-form-item>
            <el-form-item label="过期时间">{{vip_message.end_time}}</el-form-item>
            <el-form-item label="会员状态">{{vip_message.status_str}}</el-form-item>

            <el-form-item label="会员总月数">{{vip_message.total_month}}</el-form-item>
            <el-form-item label="续费次数">{{vip_message.continue_times}}</el-form-item>
            <el-form-item label="首次注册时间">{{vip_message.begin_time}}</el-form-item>
<!--            <el-form-item label="关注公众号时间">{{vip_message.subscribe_time}}</el-form-item>-->
        </el-form>
    </el-dialog>
</template>

<script>
    export default {
        name: "VipDetailDialog",
        data(){
            return {
                dialog:false,
                v_id:0,
                vip_message:{},
            }
        },
        methods:{
            init(v_id){
                this.dialog = true;
                this.v_id = v_id;
                this.post('/api/laifei/vip/detail',{v_id:v_id}).then(result=>{
                    if(result.code === 0){
                        this.vip_message = result.data;
                    }
                })
            }
        }
    }
</script>

<style scoped>

</style>